//
//  UIColor+Extension.swift
//  sinaWeibo
//
//  Created by hjun on 16/3/25.
//  Copyright © 2016年 hjun. All rights reserved.
//

import UIKit

extension UIColor{
    
    class func random()-> UIColor {
        
        return UIColor(red: randomValue(), green: randomValue(), blue: randomValue(), alpha: 1)
    }
    
    
    
    
    private class func randomValue() ->CGFloat{
        
        return CGFloat(arc4random_uniform(256))/255.0
    }
}